<template>
    <div>
        <el-card>
            <el-tabs v-model="activeName" @tab-click="handleClick" type="card">
                <el-tab-pane label="黑名单列表" name="blackList">
                    <Blacklist v-if="activeName == 'blackList'"></Blacklist>
                </el-tab-pane>

                <el-tab-pane label="规则列表" name="ruleList">
                    <RuleList v-if="activeName == 'ruleList'"/>
                </el-tab-pane>
            </el-tabs>
        </el-card>

    </div>
</template>

<script>
import Blacklist from "@/views/customer/client_blacklist/blacklist";
import RuleList from "@/views/customer/client_blacklist/list_rule";
export default {
    components: {
        RuleList,
        Blacklist
    },
    data() {
        return {
            activeName: "blackList"
        }
    },
    methods: {
        handleClick(tab, event) {
            this.activeName = tab.name
        }
    }
}
</script>

<style scoped>
.el-input {
    width: 150px;
}
</style>
